<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登陆</title>
</head>
<body>
	<%-- 	<span style="color: red"><%=session.getAttribute(WebAttributes.AUTHENTICATION_EXCEPTION)%></span> --%>
	<form action="<%=request.getContextPath()%>/j_spring_security_check"
		method="post">
		<table>
			<tr>
				<td align="center">用户名：</td>
				<td align="center"><input type="text" name="username"
					value="${sessionScope['SPRING_SECURITY_LAST_USERNAME']}" /></td>
				<td align="center"><c:if test="${not empty requestScope['ERROR_USER_NAME'] }">
						<font color="red">${sessionScope['ERROR_USER_NAME']}</font>
					</c:if></td>
			</tr>
			<tr>
				<td align="center">密码：</td>
				<td align="center"><input type="password" name="password"
					value="" /></td>
				<td align="center"><c:if test="${not empty ERROR_PASSWORD }">
						<font color="red">${sessionScope['ERROR_PASSWORD']}</font>
					</c:if></td>
			</tr>
			<!-- <tr> -->
			<!-- 	<td colspan="2" align="center"><input type="checkbox" -->
			<!-- 		name="_spring_security_remember_me" />两周之内不必登陆<br /></td> -->
			<!-- </tr> -->
			<tr>
				<td colspan="2" align="center"><input type="submit"></td>
			</tr>
		</table>
	</form>
</body>
</html>